#pragma once
#include "IPrimitive.h"
#include "Point.h"
class Line:public IPrimitive
{
public:
	Line(Point& from,Point& to);
	~Line();
	virtual void draw(IPixelDrawer* dr);
private:
	void breshham_yin(IPixelDrawer* dr);
	void breshham(IPixelDrawer* dr);
	Point from,to;
};

